package com.hissy.dao.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysCodeValuePoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysCodeValuePoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTypeIdIsNull() {
            addCriterion("type_id is null");
            return (Criteria) this;
        }

        public Criteria andTypeIdIsNotNull() {
            addCriterion("type_id is not null");
            return (Criteria) this;
        }

        public Criteria andTypeIdEqualTo(Long value) {
            addCriterion("type_id =", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotEqualTo(Long value) {
            addCriterion("type_id <>", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdGreaterThan(Long value) {
            addCriterion("type_id >", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdGreaterThanOrEqualTo(Long value) {
            addCriterion("type_id >=", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdLessThan(Long value) {
            addCriterion("type_id <", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdLessThanOrEqualTo(Long value) {
            addCriterion("type_id <=", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdIn(List<Long> values) {
            addCriterion("type_id in", values, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotIn(List<Long> values) {
            addCriterion("type_id not in", values, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdBetween(Long value1, Long value2) {
            addCriterion("type_id between", value1, value2, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotBetween(Long value1, Long value2) {
            addCriterion("type_id not between", value1, value2, "typeId");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnIsNull() {
            addCriterion("code_type_en is null");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnIsNotNull() {
            addCriterion("code_type_en is not null");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnEqualTo(String value) {
            addCriterion("code_type_en =", value, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnNotEqualTo(String value) {
            addCriterion("code_type_en <>", value, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnGreaterThan(String value) {
            addCriterion("code_type_en >", value, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnGreaterThanOrEqualTo(String value) {
            addCriterion("code_type_en >=", value, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnLessThan(String value) {
            addCriterion("code_type_en <", value, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnLessThanOrEqualTo(String value) {
            addCriterion("code_type_en <=", value, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnLike(String value) {
            addCriterion("code_type_en like", value, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnNotLike(String value) {
            addCriterion("code_type_en not like", value, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnIn(List<String> values) {
            addCriterion("code_type_en in", values, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnNotIn(List<String> values) {
            addCriterion("code_type_en not in", values, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnBetween(String value1, String value2) {
            addCriterion("code_type_en between", value1, value2, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeTypeEnNotBetween(String value1, String value2) {
            addCriterion("code_type_en not between", value1, value2, "codeTypeEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpIsNull() {
            addCriterion("code_value_exp is null");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpIsNotNull() {
            addCriterion("code_value_exp is not null");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpEqualTo(String value) {
            addCriterion("code_value_exp =", value, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpNotEqualTo(String value) {
            addCriterion("code_value_exp <>", value, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpGreaterThan(String value) {
            addCriterion("code_value_exp >", value, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpGreaterThanOrEqualTo(String value) {
            addCriterion("code_value_exp >=", value, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpLessThan(String value) {
            addCriterion("code_value_exp <", value, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpLessThanOrEqualTo(String value) {
            addCriterion("code_value_exp <=", value, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpLike(String value) {
            addCriterion("code_value_exp like", value, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpNotLike(String value) {
            addCriterion("code_value_exp not like", value, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpIn(List<String> values) {
            addCriterion("code_value_exp in", values, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpNotIn(List<String> values) {
            addCriterion("code_value_exp not in", values, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpBetween(String value1, String value2) {
            addCriterion("code_value_exp between", value1, value2, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andCodeValueExpNotBetween(String value1, String value2) {
            addCriterion("code_value_exp not between", value1, value2, "codeValueExp");
            return (Criteria) this;
        }

        public Criteria andOrderNumIsNull() {
            addCriterion("order_num is null");
            return (Criteria) this;
        }

        public Criteria andOrderNumIsNotNull() {
            addCriterion("order_num is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNumEqualTo(Integer value) {
            addCriterion("order_num =", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumNotEqualTo(Integer value) {
            addCriterion("order_num <>", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumGreaterThan(Integer value) {
            addCriterion("order_num >", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_num >=", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumLessThan(Integer value) {
            addCriterion("order_num <", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumLessThanOrEqualTo(Integer value) {
            addCriterion("order_num <=", value, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumIn(List<Integer> values) {
            addCriterion("order_num in", values, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumNotIn(List<Integer> values) {
            addCriterion("order_num not in", values, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumBetween(Integer value1, Integer value2) {
            addCriterion("order_num between", value1, value2, "orderNum");
            return (Criteria) this;
        }

        public Criteria andOrderNumNotBetween(Integer value1, Integer value2) {
            addCriterion("order_num not between", value1, value2, "orderNum");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnIsNull() {
            addCriterion("code_value_en is null");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnIsNotNull() {
            addCriterion("code_value_en is not null");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnEqualTo(String value) {
            addCriterion("code_value_en =", value, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnNotEqualTo(String value) {
            addCriterion("code_value_en <>", value, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnGreaterThan(String value) {
            addCriterion("code_value_en >", value, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnGreaterThanOrEqualTo(String value) {
            addCriterion("code_value_en >=", value, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnLessThan(String value) {
            addCriterion("code_value_en <", value, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnLessThanOrEqualTo(String value) {
            addCriterion("code_value_en <=", value, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnLike(String value) {
            addCriterion("code_value_en like", value, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnNotLike(String value) {
            addCriterion("code_value_en not like", value, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnIn(List<String> values) {
            addCriterion("code_value_en in", values, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnNotIn(List<String> values) {
            addCriterion("code_value_en not in", values, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnBetween(String value1, String value2) {
            addCriterion("code_value_en between", value1, value2, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueEnNotBetween(String value1, String value2) {
            addCriterion("code_value_en not between", value1, value2, "codeValueEn");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameIsNull() {
            addCriterion("code_value_name is null");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameIsNotNull() {
            addCriterion("code_value_name is not null");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameEqualTo(String value) {
            addCriterion("code_value_name =", value, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameNotEqualTo(String value) {
            addCriterion("code_value_name <>", value, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameGreaterThan(String value) {
            addCriterion("code_value_name >", value, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameGreaterThanOrEqualTo(String value) {
            addCriterion("code_value_name >=", value, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameLessThan(String value) {
            addCriterion("code_value_name <", value, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameLessThanOrEqualTo(String value) {
            addCriterion("code_value_name <=", value, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameLike(String value) {
            addCriterion("code_value_name like", value, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameNotLike(String value) {
            addCriterion("code_value_name not like", value, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameIn(List<String> values) {
            addCriterion("code_value_name in", values, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameNotIn(List<String> values) {
            addCriterion("code_value_name not in", values, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameBetween(String value1, String value2) {
            addCriterion("code_value_name between", value1, value2, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andCodeValueNameNotBetween(String value1, String value2) {
            addCriterion("code_value_name not between", value1, value2, "codeValueName");
            return (Criteria) this;
        }

        public Criteria andClassificationIdIsNull() {
            addCriterion("classification_id is null");
            return (Criteria) this;
        }

        public Criteria andClassificationIdIsNotNull() {
            addCriterion("classification_id is not null");
            return (Criteria) this;
        }

        public Criteria andClassificationIdEqualTo(Long value) {
            addCriterion("classification_id =", value, "classificationId");
            return (Criteria) this;
        }

        public Criteria andClassificationIdNotEqualTo(Long value) {
            addCriterion("classification_id <>", value, "classificationId");
            return (Criteria) this;
        }

        public Criteria andClassificationIdGreaterThan(Long value) {
            addCriterion("classification_id >", value, "classificationId");
            return (Criteria) this;
        }

        public Criteria andClassificationIdGreaterThanOrEqualTo(Long value) {
            addCriterion("classification_id >=", value, "classificationId");
            return (Criteria) this;
        }

        public Criteria andClassificationIdLessThan(Long value) {
            addCriterion("classification_id <", value, "classificationId");
            return (Criteria) this;
        }

        public Criteria andClassificationIdLessThanOrEqualTo(Long value) {
            addCriterion("classification_id <=", value, "classificationId");
            return (Criteria) this;
        }

        public Criteria andClassificationIdIn(List<Long> values) {
            addCriterion("classification_id in", values, "classificationId");
            return (Criteria) this;
        }

        public Criteria andClassificationIdNotIn(List<Long> values) {
            addCriterion("classification_id not in", values, "classificationId");
            return (Criteria) this;
        }

        public Criteria andClassificationIdBetween(Long value1, Long value2) {
            addCriterion("classification_id between", value1, value2, "classificationId");
            return (Criteria) this;
        }

        public Criteria andClassificationIdNotBetween(Long value1, Long value2) {
            addCriterion("classification_id not between", value1, value2, "classificationId");
            return (Criteria) this;
        }

        public Criteria andExtDescIsNull() {
            addCriterion("ext_desc is null");
            return (Criteria) this;
        }

        public Criteria andExtDescIsNotNull() {
            addCriterion("ext_desc is not null");
            return (Criteria) this;
        }

        public Criteria andExtDescEqualTo(String value) {
            addCriterion("ext_desc =", value, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescNotEqualTo(String value) {
            addCriterion("ext_desc <>", value, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescGreaterThan(String value) {
            addCriterion("ext_desc >", value, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescGreaterThanOrEqualTo(String value) {
            addCriterion("ext_desc >=", value, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescLessThan(String value) {
            addCriterion("ext_desc <", value, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescLessThanOrEqualTo(String value) {
            addCriterion("ext_desc <=", value, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescLike(String value) {
            addCriterion("ext_desc like", value, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescNotLike(String value) {
            addCriterion("ext_desc not like", value, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescIn(List<String> values) {
            addCriterion("ext_desc in", values, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescNotIn(List<String> values) {
            addCriterion("ext_desc not in", values, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescBetween(String value1, String value2) {
            addCriterion("ext_desc between", value1, value2, "extDesc");
            return (Criteria) this;
        }

        public Criteria andExtDescNotBetween(String value1, String value2) {
            addCriterion("ext_desc not between", value1, value2, "extDesc");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNull() {
            addCriterion("parent_id is null");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNotNull() {
            addCriterion("parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andParentIdEqualTo(Long value) {
            addCriterion("parent_id =", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotEqualTo(Long value) {
            addCriterion("parent_id <>", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThan(Long value) {
            addCriterion("parent_id >", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThanOrEqualTo(Long value) {
            addCriterion("parent_id >=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThan(Long value) {
            addCriterion("parent_id <", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThanOrEqualTo(Long value) {
            addCriterion("parent_id <=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdIn(List<Long> values) {
            addCriterion("parent_id in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotIn(List<Long> values) {
            addCriterion("parent_id not in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdBetween(Long value1, Long value2) {
            addCriterion("parent_id between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotBetween(Long value1, Long value2) {
            addCriterion("parent_id not between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNull() {
            addCriterion("is_deleted is null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNotNull() {
            addCriterion("is_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedEqualTo(String value) {
            addCriterion("is_deleted =", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotEqualTo(String value) {
            addCriterion("is_deleted <>", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThan(String value) {
            addCriterion("is_deleted >", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThanOrEqualTo(String value) {
            addCriterion("is_deleted >=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThan(String value) {
            addCriterion("is_deleted <", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThanOrEqualTo(String value) {
            addCriterion("is_deleted <=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLike(String value) {
            addCriterion("is_deleted like", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotLike(String value) {
            addCriterion("is_deleted not like", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIn(List<String> values) {
            addCriterion("is_deleted in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotIn(List<String> values) {
            addCriterion("is_deleted not in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedBetween(String value1, String value2) {
            addCriterion("is_deleted between", value1, value2, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotBetween(String value1, String value2) {
            addCriterion("is_deleted not between", value1, value2, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(Long value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(Long value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(Long value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(Long value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(Long value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(Long value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<Long> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<Long> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(Long value1, Long value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(Long value1, Long value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNull() {
            addCriterion("update_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNotNull() {
            addCriterion("update_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByEqualTo(Long value) {
            addCriterion("update_by =", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotEqualTo(Long value) {
            addCriterion("update_by <>", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThan(Long value) {
            addCriterion("update_by >", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThanOrEqualTo(Long value) {
            addCriterion("update_by >=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThan(Long value) {
            addCriterion("update_by <", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThanOrEqualTo(Long value) {
            addCriterion("update_by <=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByIn(List<Long> values) {
            addCriterion("update_by in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotIn(List<Long> values) {
            addCriterion("update_by not in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByBetween(Long value1, Long value2) {
            addCriterion("update_by between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotBetween(Long value1, Long value2) {
            addCriterion("update_by not between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("version is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("version is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(Long value) {
            addCriterion("version =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(Long value) {
            addCriterion("version <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(Long value) {
            addCriterion("version >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(Long value) {
            addCriterion("version >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(Long value) {
            addCriterion("version <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(Long value) {
            addCriterion("version <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<Long> values) {
            addCriterion("version in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<Long> values) {
            addCriterion("version not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(Long value1, Long value2) {
            addCriterion("version between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(Long value1, Long value2) {
            addCriterion("version not between", value1, value2, "version");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}